/**
 * 
 */
package com.myBase.core.entity;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.myBase.common.persistence.BaseEntity;

/**
 * 活动资金池表Entity
 * @author 活动资金池表
 * @version 2017-05-04
 */
public class GoldcoinActivitycashpool extends BaseEntity<GoldcoinActivitycashpool> {

    private static final long serialVersionUID = 1L;

    private Integer activityid; // 活动id-来自mgmt平台

    private String activityname; // 活动名称-来自mgmt平台

    private Date begin; // 活动开始时间

    private Date end; // 活动结束时间

    private String sumcash; // 本次活动总可用资金金额，单位：元，保留两位小数

    private String canusecash; // 可用资金金额，单位：元，保留两位小数

    private String freezecash; // 冻结资金金额，单位：元，保留两位小数

    private String branchid; // 多系统支持（易贷msyidai）
    
    private String capitalOrderId;//关联出入金zkbc:capital表的orderId,关联zkbc:money_record表的localOrderId
    private String remarks;

    public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
    @NotNull(message = "活动id-来自mgmt平台不能为空")
    public Integer getActivityid() {
        return activityid;
    }

    public void setActivityid(Integer activityid) {
        this.activityid = activityid;
    }

    @Length(min = 0, max = 64, message = "活动名称-来自mgmt平台长度必须介于 0 和 64 之间")
    public String getActivityname() {
        return activityname;
    }

    public void setActivityname(String activityname) {
        this.activityname = activityname;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "活动开始时间不能为空")
    public Date getBegin() {
        return begin;
    }

    public void setBegin(Date begin) {
        this.begin = begin;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "活动结束时间不能为空")
    public Date getEnd() {
        return end;
    }

    public void setEnd(Date end) {
        this.end = end;
    }

    public String getSumcash() {
        return sumcash;
    }

    public void setSumcash(String sumcash) {
        this.sumcash = sumcash;
    }

    public String getCanusecash() {
        return canusecash;
    }

    public void setCanusecash(String canusecash) {
        this.canusecash = canusecash;
    }

    public String getFreezecash() {
        return freezecash;
    }

    public void setFreezecash(String freezecash) {
        this.freezecash = freezecash;
    }

    public String getBranchid() {
        return branchid;
    }

    public void setBranchid(String branchid) {
        this.branchid = branchid;
    }

	public String getCapitalOrderId() {
		return capitalOrderId;
	}

	public void setCapitalOrderId(String capitalOrderId) {
		this.capitalOrderId = capitalOrderId;
	}
    
    

}